package com.gears_software.sxdc.dccx.ui.view;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gears_software.sxdc.dccx.R;
import com.gears_software.sxdc.dccx.data.model.PositionEntity;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by chezhenzhen on 2017/6/7.
 */

@EViewGroup(R.layout.item_view_address)
public class RecomandAddressItemView extends LinearLayout {
    Context context;
    @ViewById
    TextView txt_address_detail;
    @ViewById
    TextView txt_district;

    public RecomandAddressItemView(Context context) {
        super(context);
        this.context = context;
    }

    public void bind(PositionEntity positionEntity) {
        if (positionEntity != null) {
            txt_address_detail.setText(positionEntity.getName());
            txt_district.setText(positionEntity.getAddress());

        }
    }
}

